const express = require('express')
const router = express.Router()

const treeControllers = require('../controllers/treeControllers')

// 合法性校验
const expressJoi = require('../schemas//express-joi')
const { reg_login_schema } = require('../schemas/userSchema')


// 列表
router.post('/pageList', treeControllers.list)
// 添加
router.post('/add', treeControllers.add)
// 删除
router.post('/delete', treeControllers.delete)
// 更新
router.post('/update', treeControllers.update)

module.exports = router
